.class Lcom/esfile/screen/recorder/picture/PictureListFragment$l$b;
.super Landroidx/recyclerview/widget/RecyclerView$ViewHolder;
.source "PictureListFragment.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/esfile/screen/recorder/picture/PictureListFragment$l;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = "b"
.end annotation


# instance fields
.field a:Landroid/widget/ImageView;

.field b:Landroid/widget/TextView;

.field c:Landroid/view/View;

.field d:Landroid/view/View;

.field final synthetic e:Lcom/esfile/screen/recorder/picture/PictureListFragment$l;


# direct methods
.method constructor <init>(Lcom/esfile/screen/recorder/picture/PictureListFragment$l;Landroid/view/View;)V
    .locals 2

    .line 1
    iput-object p1, p0, Lcom/esfile/screen/recorder/picture/PictureListFragment$l$b;->e:Lcom/esfile/screen/recorder/picture/PictureListFragment$l;

    .line 2
    invoke-direct {p0, p2}, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;-><init>(Landroid/view/View;)V

    .line 3
    sget v0, Les/x4;->durec_picture_list_image:I

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/esfile/screen/recorder/picture/PictureListFragment$l$b;->a:Landroid/widget/ImageView;

    .line 4
    invoke-virtual {v0}, Landroid/widget/ImageView;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v0

    .line 5
    iget-object v1, p1, Lcom/esfile/screen/recorder/picture/PictureListFragment$l;->a:Lcom/esfile/screen/recorder/picture/PictureListFragment;

    invoke-static {v1}, Lcom/esfile/screen/recorder/picture/PictureListFragment;->d(Lcom/esfile/screen/recorder/picture/PictureListFragment;)I

    move-result v1

    iput v1, v0, Landroid/view/ViewGroup$LayoutParams;->width:I

    .line 6
    iget-object v1, p1, Lcom/esfile/screen/recorder/picture/PictureListFragment$l;->a:Lcom/esfile/screen/recorder/picture/PictureListFragment;

    invoke-static {v1}, Lcom/esfile/screen/recorder/picture/PictureListFragment;->e(Lcom/esfile/screen/recorder/picture/PictureListFragment;)I

    move-result v1

    iput v1, v0, Landroid/view/ViewGroup$LayoutParams;->height:I

    .line 7
    iget-object v1, p0, Lcom/esfile/screen/recorder/picture/PictureListFragment$l$b;->a:Landroid/widget/ImageView;

    invoke-virtual {v1, v0}, Landroid/widget/ImageView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 8
    sget v0, Les/x4;->durec_picture_list_order:I

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/esfile/screen/recorder/picture/PictureListFragment$l$b;->b:Landroid/widget/TextView;

    .line 9
    sget v0, Les/x4;->durec_picture_list_tick:I

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/esfile/screen/recorder/picture/PictureListFragment$l$b;->c:Landroid/view/View;

    .line 10
    sget v0, Les/x4;->durec_gif_mark:I

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p2

    iput-object p2, p0, Lcom/esfile/screen/recorder/picture/PictureListFragment$l$b;->d:Landroid/view/View;

    .line 11
    iget-object p2, p0, Lcom/esfile/screen/recorder/picture/PictureListFragment$l$b;->c:Landroid/view/View;

    new-instance v0, Lcom/esfile/screen/recorder/picture/PictureListFragment$l$b$a;

    invoke-direct {v0, p0, p1}, Lcom/esfile/screen/recorder/picture/PictureListFragment$l$b$a;-><init>(Lcom/esfile/screen/recorder/picture/PictureListFragment$l$b;Lcom/esfile/screen/recorder/picture/PictureListFragment$l;)V

    invoke-virtual {p2, v0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 12
    iget-object p2, p0, Lcom/esfile/screen/recorder/picture/PictureListFragment$l$b;->a:Landroid/widget/ImageView;

    new-instance v0, Lcom/esfile/screen/recorder/picture/PictureListFragment$l$b$b;

    invoke-direct {v0, p0, p1}, Lcom/esfile/screen/recorder/picture/PictureListFragment$l$b$b;-><init>(Lcom/esfile/screen/recorder/picture/PictureListFragment$l$b;Lcom/esfile/screen/recorder/picture/PictureListFragment$l;)V

    invoke-virtual {p2, v0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    return-void
.end method

.method static synthetic a(Lcom/esfile/screen/recorder/picture/PictureListFragment$l$b;Lcom/esfile/screen/recorder/provider/entity/ImageInfo;)V
    .locals 0

    .line 1
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/picture/PictureListFragment$l$b;->c(Lcom/esfile/screen/recorder/provider/entity/ImageInfo;)V

    return-void
.end method

.method static synthetic b(Lcom/esfile/screen/recorder/picture/PictureListFragment$l$b;Lcom/esfile/screen/recorder/provider/entity/ImageInfo;)V
    .locals 0

    .line 1
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/picture/PictureListFragment$l$b;->b(Lcom/esfile/screen/recorder/provider/entity/ImageInfo;)V

    return-void
.end method

.method private b(Lcom/esfile/screen/recorder/provider/entity/ImageInfo;)V
    .locals 1

    const/4 v0, 0x1

    .line 2
    invoke-virtual {p1, v0}, Lcom/esfile/screen/recorder/provider/entity/ImageInfo;->a(Z)V

    .line 3
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/PictureListFragment$l$b;->e:Lcom/esfile/screen/recorder/picture/PictureListFragment$l;

    iget-object v0, v0, Lcom/esfile/screen/recorder/picture/PictureListFragment$l;->a:Lcom/esfile/screen/recorder/picture/PictureListFragment;

    invoke-static {v0}, Lcom/esfile/screen/recorder/picture/PictureListFragment;->k(Lcom/esfile/screen/recorder/picture/PictureListFragment;)Ljava/util/ArrayList;

    move-result-object v0

    invoke-virtual {v0, p1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    return-void
.end method

.method private c(Lcom/esfile/screen/recorder/provider/entity/ImageInfo;)V
    .locals 3

    const/4 v0, 0x0

    .line 1
    invoke-virtual {p1, v0}, Lcom/esfile/screen/recorder/provider/entity/ImageInfo;->a(Z)V

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/PictureListFragment$l$b;->e:Lcom/esfile/screen/recorder/picture/PictureListFragment$l;

    iget-object v0, v0, Lcom/esfile/screen/recorder/picture/PictureListFragment$l;->a:Lcom/esfile/screen/recorder/picture/PictureListFragment;

    invoke-static {v0}, Lcom/esfile/screen/recorder/picture/PictureListFragment;->k(Lcom/esfile/screen/recorder/picture/PictureListFragment;)Ljava/util/ArrayList;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :cond_0
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_1

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/esfile/screen/recorder/provider/entity/ImageInfo;

    .line 3
    invoke-virtual {v1, p1}, Lcom/esfile/screen/recorder/provider/entity/ImageInfo;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_0

    goto :goto_0

    :cond_1
    const/4 v1, 0x0

    :goto_0
    if-eqz v1, :cond_2

    .line 4
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/PictureListFragment$l$b;->e:Lcom/esfile/screen/recorder/picture/PictureListFragment$l;

    iget-object p1, p1, Lcom/esfile/screen/recorder/picture/PictureListFragment$l;->a:Lcom/esfile/screen/recorder/picture/PictureListFragment;

    invoke-static {p1}, Lcom/esfile/screen/recorder/picture/PictureListFragment;->k(Lcom/esfile/screen/recorder/picture/PictureListFragment;)Ljava/util/ArrayList;

    move-result-object p1

    invoke-virtual {p1, v1}, Ljava/util/ArrayList;->remove(Ljava/lang/Object;)Z

    :cond_2
    return-void
.end method


# virtual methods
.method a(Lcom/esfile/screen/recorder/provider/entity/ImageInfo;)V
    .locals 4

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/PictureListFragment$l$b;->e:Lcom/esfile/screen/recorder/picture/PictureListFragment$l;

    iget-object v0, v0, Lcom/esfile/screen/recorder/picture/PictureListFragment$l;->a:Lcom/esfile/screen/recorder/picture/PictureListFragment;

    invoke-virtual {v0}, Landroidx/fragment/app/Fragment;->isAdded()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 3
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/PictureListFragment$l$b;->e:Lcom/esfile/screen/recorder/picture/PictureListFragment$l;

    iget-object v0, v0, Lcom/esfile/screen/recorder/picture/PictureListFragment$l;->a:Lcom/esfile/screen/recorder/picture/PictureListFragment;

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/base/BaseFragment;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/esfile/recorder/a;->a(Landroid/content/Context;)Lcom/esfile/recorder/d;

    move-result-object v0

    .line 4
    invoke-virtual {v0}, Lcom/esfile/recorder/d;->b()Lcom/esfile/recorder/c;

    move-result-object v0

    .line 5
    invoke-virtual {p1}, Lcom/esfile/screen/recorder/provider/entity/ImageInfo;->b()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/esfile/recorder/c;->a(Ljava/lang/String;)Lcom/esfile/recorder/c;

    move-result-object v0

    new-instance v1, Les/b4;

    .line 6
    invoke-virtual {p1}, Lcom/esfile/screen/recorder/provider/entity/ImageInfo;->a()J

    move-result-wide v2

    invoke-static {v2, v3}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;

    move-result-object v2

    invoke-direct {v1, v2}, Les/b4;-><init>(Ljava/lang/Object;)V

    invoke-virtual {v0, v1}, Lcom/esfile/recorder/c;->a(Lcom/bumptech/glide/load/c;)Lcom/esfile/recorder/c;

    move-result-object v0

    .line 7
    invoke-virtual {v0}, Lcom/esfile/recorder/c;->c()Lcom/esfile/recorder/c;

    move-result-object v0

    sget v1, Les/w4;->durec_picker_image_placeholder:I

    .line 8
    invoke-virtual {v0, v1}, Lcom/esfile/recorder/c;->b(I)Lcom/esfile/recorder/c;

    move-result-object v0

    sget v1, Les/w4;->durec_picker_image_placeholder:I

    .line 9
    invoke-virtual {v0, v1}, Lcom/esfile/recorder/c;->a(I)Lcom/esfile/recorder/c;

    move-result-object v0

    iget-object v1, p0, Lcom/esfile/screen/recorder/picture/PictureListFragment$l$b;->a:Landroid/widget/ImageView;

    .line 10
    invoke-virtual {v0, v1}, Lcom/bumptech/glide/g;->a(Landroid/widget/ImageView;)Les/w3;

    .line 11
    :cond_0
    invoke-virtual {p1}, Lcom/esfile/screen/recorder/provider/entity/ImageInfo;->d()Z

    move-result v0

    const-string v1, ""

    const/4 v2, 0x0

    if-eqz v0, :cond_2

    .line 12
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/PictureListFragment$l$b;->e:Lcom/esfile/screen/recorder/picture/PictureListFragment$l;

    iget-object v0, v0, Lcom/esfile/screen/recorder/picture/PictureListFragment$l;->a:Lcom/esfile/screen/recorder/picture/PictureListFragment;

    invoke-static {v0}, Lcom/esfile/screen/recorder/picture/PictureListFragment;->k(Lcom/esfile/screen/recorder/picture/PictureListFragment;)Ljava/util/ArrayList;

    move-result-object v0

    invoke-virtual {v0, p1}, Ljava/util/ArrayList;->indexOf(Ljava/lang/Object;)I

    move-result v0

    const/4 v3, -0x1

    if-ne v0, v3, :cond_1

    .line 13
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/PictureListFragment$l$b;->b:Landroid/widget/TextView;

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setSelected(Z)V

    .line 14
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/PictureListFragment$l$b;->b:Landroid/widget/TextView;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 15
    invoke-virtual {p1, v2}, Lcom/esfile/screen/recorder/provider/entity/ImageInfo;->a(Z)V

    goto :goto_0

    .line 16
    :cond_1
    iget-object v1, p0, Lcom/esfile/screen/recorder/picture/PictureListFragment$l$b;->b:Landroid/widget/TextView;

    const/4 v3, 0x1

    invoke-virtual {v1, v3}, Landroid/widget/TextView;->setSelected(Z)V

    add-int/2addr v0, v3

    .line 17
    invoke-static {v0}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v0

    .line 18
    iget-object v1, p0, Lcom/esfile/screen/recorder/picture/PictureListFragment$l$b;->b:Landroid/widget/TextView;

    invoke-virtual {v1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_0

    .line 19
    :cond_2
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/PictureListFragment$l$b;->b:Landroid/widget/TextView;

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setSelected(Z)V

    .line 20
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/PictureListFragment$l$b;->b:Landroid/widget/TextView;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 21
    :goto_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/PictureListFragment$l$b;->d:Landroid/view/View;

    invoke-virtual {p1}, Lcom/esfile/screen/recorder/provider/entity/ImageInfo;->c()Lcom/esfile/screen/recorder/provider/entity/ImageInfo$Type;

    move-result-object p1

    sget-object v1, Lcom/esfile/screen/recorder/provider/entity/ImageInfo$Type;->GIF:Lcom/esfile/screen/recorder/provider/entity/ImageInfo$Type;

    if-ne p1, v1, :cond_3

    goto :goto_1

    :cond_3
    const/16 v2, 0x8

    :goto_1
    invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V

    return-void
.end method
